package cn.ssm.test.service;

import java.util.Random;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.ssm.test.dao.IWhisperDao;
import cn.ssm.test.model.Whisper;

@Service
public class WhisperServiceImpl implements IWhisperService {

	@Autowired
	private IWhisperDao whisperDao;
	
	@Override
	public Whisper getWhisperInfo() {
		Random r = new Random();
		int id =r.nextInt(10);
		return whisperDao.getWhisperInfo(id);
	}

}
